home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / squota-0.02 / Squota.tar / Squota / quotavars < prev    next >
Text File  |  1996-05-13  |  2KB  |  42 lines

  1. #!/bin/bash
  2. # Squota - Screwed Quota        Copyright (c) 1996    Gary Barrueto
  3. #=============================================================================
  4. # HQ, FSLIMIT and WHATDIR is the only varibles you can modify
  5. #=============================================================================
  6. # so users can check their daily quota, the following should be added to
  7. # /etc/profile :
  8. # /usr/local/bin/Squotack
  9. #=============================================================================
  10. # HQ - where Squota resides
  11. #=============================================================================
  12.  
  13. HQ=/var/adm/Squota
  14.  
  15. #=============================================================================
  16. # $FSLIMIT is the # of megabytes you allow.. 
  17. # Future release of this script will calculate $ due if over $FSLIMIT (average)
  18. #=============================================================================
  19.  
  20. FSLIMIT=5
  21.  
  22. #=============================================================================
  23. # $WHATDIR is where user homes reside
  24. # you must have an entry in /etc/passwd as a defined home dir for a user
  25. # since I use '~' to "cd" into directories.
  26. #=============================================================================
  27.  
  28. WHATDIR=/home
  29.  
  30. #=============================================================================
  31. # There is no need to edit below this line....
  32. #=============================================================================
  33. # $MON is the suffix of each file, this chages to Abbrev. of each month
  34. #=============================================================================
  35. MON=`date +%b`
  36. # $DAY is the # of days to divide by to get average
  37. DAY=`date +%d`
  38. # This script needs a variable set it zero
  39. EMPTY=0
  40. # $PULENGTH sets # of users...
  41. PULENGTH=`echo \`wc -l $HQ/quota.users\` | cut -d" " -f1`
  42.